package eleanor.ltd.isRealEstate.dao.messages.priority;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import eleanor.ltd.isRealEstate.entities.messages.priority.MessagePriority;

public interface MessagesPriorityDAO {

	@CommitAfter
    public boolean save(MessagePriority newMessagePriority);

    @CommitAfter
    public boolean delete(MessagePriority messagePriority);

    @CommitAfter
    public boolean update(MessagePriority messagePriority);

    public List<MessagePriority> findAll();

    public MessagePriority findByID(Long id);

    @CommitAfter
    public boolean deleteByID(Long id);

}
